<?php
namespace app\api\controller\v1;
/*
 * content : 登录注册类
 * Author  : Songyicong 
 * time    : 2018-04-30 15:05:00 
 * email   : m13726262373@163.com 
 */
 use app\api\controller\BaseController;
 use app\api\service\v1\RegistService;

class Regist extends BaseController{

    // 开启ip检测
    public $ipAuth = true;
    protected $registService;

    /** 初始化检测请求时间，签名 */
    public function __construct(){
        parent::__construct();
        $this->registService = new RegistService();
    }

    /** 邮件注册 */
    public function setRegistEmail(){
        $this->registService->setRegistEmail($this->params);
    }

    /** 更新邮件验证码 */
    public function updateEmailCode(){
        $this->registService->updateEmailCode($this->params);
    }

    /** 判断邮件验证码是否正确 */
    public function isVerifyEmailCode(){
        $this->registService->isVerifyEmailCode($this->params);
    }
}
